package com.zhonglz.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhonglz.commons.base.BaseService;
import com.zhonglz.model.SysLog;
import com.zhonglz.service.SysLogService;
import com.zhonglz.util.tools.UuidUtils;

@Service
@Transactional
public class SysLogServiceImpl extends BaseService implements SysLogService{
	
	/***
	 * 插入日志
	 */
	@Override
	public boolean insertLogger(SysLog sysLog) {
		String uuid=UuidUtils.uuid();
		sysLog.setLogId(uuid);
		return sysLogMapper.insertSelective(sysLog) > 0 ? true : false;
	}

	/***
	 * 根据条件查询出系统日志列表
	 */
	@Override
	public List<SysLog> getLogData(Map<String, Object> mapParam) {
		return sysLogMapper.getLogData(mapParam);
	}

}
